package org.ufinity.hsms.module.login.activity;


import org.ufinity.hsms.R;
import org.ufinity.hsms.module.MainActivity;
import org.ufinity.hsms.module.TabbarActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;
import android.view.WindowManager;


public class SplashActivity extends Activity  {
	
	 @Override
	    public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	     // 取消标题栏
			requestWindowFeature(Window.FEATURE_NO_TITLE);
			// 取消状态栏
			getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
					WindowManager.LayoutParams.FLAG_FULLSCREEN);
			
	        setContentView(R.layout.splash);
	        Handler x = new Handler();
	        x.postDelayed(new splashhandler(), 400);
	        
	    }
	    class splashhandler implements Runnable{

	        public void run() {
	            //startActivity(new Intent(getApplication(),TabbarActivity.class));
	            startActivity(new Intent(getApplication(),LoginActivity.class));
	            SplashActivity.this.finish();
	        }
	    }
}
